package com.itheima.homework;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class homework {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos= new FileOutputStream("day16_dcp\\a.txt");
        fos.write('c');
        fos.write(97);
        fos.write("hello".getBytes());
        fos.write("hello".getBytes(),1,3);
        fos.close();

    }
}
